<?php
/**
 * Created by PhpStorm.
 * User: chl
 * Date: 2017/5/3 0003
 * Time: 15:36
 */
namespace app\validate;
class LinkValidate{
    protected $rule = [
        'link_name' => 'require',
        'link_url'  => 'require',
    ];
    protected $message = [
        'link_name.require' => '链接名称不能为空',
        'link_url.require'  => '链接地址不能为空'
    ];

    public function linkValidate(){
        $validate['rule'] = $this->rule;
        $validate['message'] = $this->message;
        return $validate;
    }
}